# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-arxivloader
_pkgorig=arxivloader
pkgver=1.0.2
pkgrel=5
pkgdesc="Wrapper for the arXiv API"
url="https://github.com/stammler/arxivloader"
arch="noarch"
license="BSD-3-Clause"
depends="
	python3
	py3-beautifulsoup4
	py3-lxml
	py3-numpy
	py3-pandas
	py3-requests
	py3-tqdm
	"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/a/arxivloader/arxivloader-$pkgver.tar.gz"
builddir="$srcdir/$_pkgorig-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

# no tests provided by the upstream (for now)
# use smoke tests now
check() {
	PYTHONPATH=build/lib python3 -c "import arxivloader"
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
42fe244f72b95d06a43caacd9971494d957e83b9cd6afab17ef7d555ec42b38eb80d302b53dcdc62df9cf60d7cb8adb3cd1517a077f93b63ac1fa83a6c169ac0  py3-arxivloader-1.0.2.tar.gz
"
